package top.yekongle.excel.entity;

import java.util.Date;

import javax.validation.constraints.NotBlank;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import lombok.Data;

/** 
* <pre>
* @Description: 
* @Author: Yekongle 
* @Date: Apr 1, 2020
* </pre> 
*/
@ExcelTarget("user")
@Data
public class User implements java.io.Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -7671322066456256691L;

	@Excel(name = "id", width=15)
	@NotBlank(message = "该字段不能为空")
	private Integer id;
 
	@Excel(name = "姓名", orderNum = "0", width=30)
	private String name;
 
	@Excel(name = "性别", replace = { "男_1", "女_2" }, orderNum = "1", width=30)
	private String sex;
 
	@Excel(name = "生日", exportFormat = "yyyy-MM-dd",  orderNum = "2", width=30)
	private Date birthday;
}
